package cn.mes.module.mes.controller.admin.baseworkplan.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.mes.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.mes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 任务单信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BaseWorkPlanPageReqVO extends PageParam {

    @Schema(description = "任务单号", example = "10588")
    private String workPlanId;

    @Schema(description = "任务单内码", example = "3361")
    private String workPlanInterId;

    @Schema(description = "产品名称", example = "张三")
    private String productName;

    @Schema(description = "客户ID", example = "21202")
    private String customerId;

    @Schema(description = "客户名称", example = "芋艿")
    private String customerName;

    @Schema(description = "计量单位名称", example = "李四")
    private String unitName;

    @Schema(description = "计量单位编号", example = "4998")
    private String unitId;

    @Schema(description = "客户料号", example = "29028")
    private String customerProductId;

    @Schema(description = "产品机种", example = "1")
    private String machineType;

    @Schema(description = "机种件别")
    private String machineItem;

    @Schema(description = "产品简称", example = "张三")
    private String productShortName;

    @Schema(description = "生产组别")
    private String productGroup;

    @Schema(description = "生产组编码")
    private String productGroupCode;

    @Schema(description = "任务单类型", example = "1")
    private String workPlanType;

    @Schema(description = "任务单类型编码")
    private String workPlanTypeCode;

    @Schema(description = "车间ID", example = "31371")
    private String workShopId;

    @Schema(description = "车间名称", example = "李四")
    private String workShopName;

    @Schema(description = "车间名称编码")
    private String workShopCode;

    @Schema(description = "机台名称")
    private String machineName;

    @Schema(description = "计划产量")
    private Long workPlanProductNum;

    @Schema(description = "计划开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planStartTime;

    @Schema(description = "计划结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] planEndTime;

    @Schema(description = "实际开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] actualStartTime;

    @Schema(description = "实际结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] actualEndTime;

    @Schema(description = "工单状态", example = "2")
    private Integer status;

    @Schema(description = "发料人编号", example = "21327")
    private String distributeManagerId;

    @Schema(description = "收料人编号", example = "30550")
    private String receiveManagerId;

    @Schema(description = "模具编号")
    private String moldNo;

    @Schema(description = "模穴数量")
    private Integer moldCaveNum;

    @Schema(description = "切换方式", example = "2")
    private Integer exchangeType;

    @Schema(description = "是否模具共用")
    private Boolean isMoldSame;

    @Schema(description = "包规数量")
    private Long quantity;

    @Schema(description = "制单时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] generateDateTime;

    @Schema(description = "制单人")
    private String generateUser;

    @Schema(description = "结案时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] closeDateTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}